package com.dlkj.threadPool.service.impl;

import com.dlkj.threadPool.entity.SysRole;
import com.dlkj.threadPool.repository.SysRoleRepository;
import com.dlkj.threadPool.service.SysRoleService;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author : lei
 * @Company ：DiLang Technology
 * @Date : 2019/1/17 16:42
 * @Description :
 **/
@Service
public class SysRoleServiceImpl implements SysRoleService {

    @Resource
    private SysRoleRepository roleRepository;

    @Override
    public SysRole selectRoleById(Integer id) {
        return roleRepository.getOne(id);
    }
}
